package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextPane;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JFArbitro extends javax.swing.JFrame {
	private JPanel jPArbitro;
	private JLabel jlbCedula;
	private JTextPane txtNombre;
	private JButton btnRegistrar;
	private JTextPane txtCant_part_arb;
	private JLabel LblContador;
	private JLabel lblArb;
	private JLabel jLabel2;
	private JLabel jLabel1;
	private JTextPane txtFech_nac;
	private JTextPane txtApellido;
	private JTextPane txtCedula;
	private JLabel jlbCantidad_partidos_arb;
	private JLabel jlbFech_nac;
	private JLabel jlbApellido;
	private JLabel jlbNombre;

	
	
	public JFArbitro() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jPArbitro = new JPanel();
				getContentPane().add(jPArbitro, BorderLayout.CENTER);
				jPArbitro.setLayout(null);
				jPArbitro.setPreferredSize(new java.awt.Dimension(390, 300));
				{
					jlbCedula = new JLabel();
					jPArbitro.add(jlbCedula);
					jlbCedula.setText("Cedula:");
					jlbCedula.setBounds(25, 30, 82, 24);
				}
				{
					jlbNombre = new JLabel();
					jPArbitro.add(jlbNombre);
					jlbNombre.setText("Nombre:");
					jlbNombre.setBounds(25, 66, 66, 21);
				}
				{
					jlbApellido = new JLabel();
					jPArbitro.add(jlbApellido);
					jlbApellido.setText("Apellido:");
					jlbApellido.setBounds(25, 99, 66, 24);
				}
				{
					jlbFech_nac = new JLabel();
					jPArbitro.add(jlbFech_nac);
					jlbFech_nac.setText("Fecha de Nacimiento:");
					jlbFech_nac.setBounds(25, 142, 136, 15);
				}
				{
					jlbCantidad_partidos_arb = new JLabel();
					jPArbitro.add(jlbCantidad_partidos_arb);
					jlbCantidad_partidos_arb.setText("Cantidad de Partidos Arbitrados:");
					jlbCantidad_partidos_arb.setBounds(25, 181, 205, 15);
				}
				{
					txtCedula = new JTextPane();
					jPArbitro.add(txtCedula);
					txtCedula.setBounds(114, 30, 145, 21);
				}
				{
					txtNombre = new JTextPane();
					jPArbitro.add(txtNombre);
					txtNombre.setBounds(114, 63, 145, 21);
				}
				{
					txtApellido = new JTextPane();
					jPArbitro.add(txtApellido);
					txtApellido.setBounds(114, 106, 145, 21);
				}
				{
					txtFech_nac = new JTextPane();
					jPArbitro.add(txtFech_nac);
					txtFech_nac.setBounds(179, 139, 104, 21);
				}
				{
					txtCant_part_arb = new JTextPane();
					jPArbitro.add(txtCant_part_arb);
					txtCant_part_arb.setBounds(242, 172, 96, 25);
				}
				{
					btnRegistrar = new JButton();
					jPArbitro.add(btnRegistrar);
					btnRegistrar.setText("Registrar");
					btnRegistrar.setBounds(143, 208, 71, 22);
					btnRegistrar.setActionCommand("Registrar");
				}
				{
					
					{
						lblArb = new JLabel();
						jPArbitro.add(lblArb);
						lblArb.setText("arbitros");
						lblArb.setBounds(130, 244, 49, 15);
					}
					{
						LblContador = new JLabel();
						jPArbitro.add(LblContador);
						LblContador.setBounds(44, 244, 130, 24);
					}

				}

			}
	
		
			
			
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}




	
	public JLabel getLblContador() {
		return LblContador;
	}

	public void setLblContador(JLabel lblContador) {
		LblContador = lblContador;
	}

	public JTextPane getTxtNombre() {
		return txtNombre;
	}

	public void setTxtNombre(JTextPane txtNombre) {
		this.txtNombre = txtNombre;
	}

	public JTextPane getTxtCant_part_arb() {
		return txtCant_part_arb;
	}

	public void setTxtCant_part_arb(JTextPane txtCant_part_arb) {
		this.txtCant_part_arb = txtCant_part_arb;
	}

	public JTextPane getTxtFech_nac() {
		return txtFech_nac;
	}

	public void setTxtFech_nac(JTextPane txtFech_nac) {
		this.txtFech_nac = txtFech_nac;
	}

	public JTextPane getTxtApellido() {
		return txtApellido;
	}

	public void setTxtApellido(JTextPane txtApellido) {
		this.txtApellido = txtApellido;
	}

	public JTextPane getTxtCedula() {
		return txtCedula;
	}
	public void Imprimir(int nro){
		LblContador.setText("Hay: "+ nro);
	}
	public void mostrarMensaje(String mensaje)
	{
		JOptionPane.showMessageDialog(this, mensaje);
	}

	public void setTxtCedula(JTextPane txtCedula) {
		this.txtCedula = txtCedula;
	}
	public void ActionListener (ActionListener actionListener)
	{
		btnRegistrar.addActionListener(actionListener);
	}
}